Hexo Comment System -- Twikoo
因为之前使用gitalk评论系统在国内用不了了,所以尝试更换为一些国内可用的方案。其中一个是国内开发者开发@imaegoo搭建的Twikoo系统
拜一下,我的博客网也是改自他的魔改版hexo-icarus主题
对,然后针对icarus系的主题,官网有提供详细例程
主要分为云函数部署部分和前端配置部分
云函数
归根结底就是为静态的博客网提供一个可以响应用户数据提交和显示的服务。
主要分为两块
- Mongodb: 用于云存储用户评论数据
- Huggingface: 用于部署一个云服务器,响应用户需求,与db交互。
那么首先就需要去mongodb申请一个数据库,依照这个例程:https://twikoo.js.org/mongodb-atlas.html
密码保密)
随后huggingface的服务就通过这串链接字符串来与这个数据库交互
随后去huggingface开启云服务器:https://twikoo.js.org/backend.html#hugging-face-%E9%83%A8%E7%BD%B2
我的云仓库为:https://huggingface.co/spaces/CallMeChen/BlogComment
启动服务成功后可以看到如下log:
前端配置
参照 https://www.anzifan.com/post/icarus_to_candy_2
关于评论头像
访客还可以通过输入数字 QQ 邮箱地址,使用 QQ 头像发表评论。
后续
Hexo Comment System -- Twikoo
http://chen-yulin.github.io/2024/09/03/[OBS]hexo-Hexo Comment System -- Twikoo/